<?php
namespace JinYou\EdgeApi;

use JinYou\EdgeApi\Exceptions\InvalidArgumentException;

class EdgeApiClient
{
    /**
     * 边缘节点统计数据
     */
    public function statistics()
    {

    }

    /**
     * 筛选查询边缘节点
     */
    public function edges($province, $city)
    {
        if (!in_array($province, ['重庆', '四川'])) {
            throw new InvalidArgumentException('无效的省市名称');
        }

        if (!in_array($city, ['重庆', '四川'])) {
            throw new InvalidArgumentException('无效的省市名称');
        }

        return ['789'];
    }
}